﻿@model Topic
@{
    var _cmd = ForumContext.Encrypt((int)CommandType.Reply, Model.TopicId);
}
<div class="site-block white-t">
    <div class="header">
        <span id="collapse_quick_post" class="collapse close"></span><span class="icon">
        </span>
        @ForumContext.GetText(LanguageSection.POST, "QUICK_REPLY")
    </div>
    

    @using (Html.Kaio().BeginForm(ForumContext.GetAbsoluteUrl(ForumUrls.NEW_POST), new jQueryAjaxOptions { Type = AjaxRequestDataType.Script, Loading = true }, new { @id = "_quickPost" }))
    {
    @Html.AntiForgeryToken()
    @Html.Hidden("cmd", _cmd)
    @Html.AntiModelInjection("cmd", _cmd)
    <div id="panel_collapse_quick_post">
        <div class="site-block-content">
            <div class="wrapper">              
                @Html.Kaio().Editor("msg", "", new EditorOptions() { ToolbarMode = EditorToolbarMode.Small }, new { style = "height: 220px; width: 99.8%" })
            </div>
        </div>
        <div class="site-block-content p-5">
            <input type="checkbox" id="quote_include" name="quote_include" value="1" />
            <label for="quote_include">@ForumContext.GetText(LanguageSection.POST, "quote_include")</label>
        </div>
        <div class="site-block-content p-5">
            @Html.Link("javascript:void(0)", ForumContext.GetText(LanguageSection.POST, "quick_post"), new { @class = "ui-button icon-16 go", onclick = "$('#_quickPost').submit()" })
            @Html.Link(string.Format("{0}?Id={1}", ForumContext.GetAbsoluteUrl(ForumUrls.NEW_REPLY), Model.TopicId), ForumContext.GetText(LanguageSection.POST, "go_full"), new { @class = "ui-button" })
        </div>
    </div>
    }
</div>
